﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="Listlayoutsetting.aspx.cs"
    Inherits="Cms.Web.CmsSystem.SysModules.Listlayoutsetting" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title></title>
    <link href="/App_Themes/default/CoreEdit.css" rel="stylesheet" type="text/css" />

    <script src="/Scripts/jquery-1.3.2.min.js" type="text/javascript"></script>

    <script src="/Scripts/core.js" type="text/javascript"></script>

    <script src="/Scripts/json.js" type="text/javascript"></script>

    <script src="../../../Scripts/form.js" type="text/javascript"></script>

    <script type="text/javascript">

        $(function() {
            var recordid = "<%=RecID %>";
            var action = "<%=Action %>";
            if (action == "add") {
                $("[name=ID]").val(recordid);
            }
            else if (action == "modify") {
                formLoad("listlayoutsetting", recordid);
            }
            $("#btnsave").click(function() {
                formSubmit("listlayoutsetting");
            });
            $("#btnDesign").click(function() {
                OpenUrlOnTab("/UIBuilder/UIDesign.aspx?param=list&id=" + $("[name=ID]").val(), "设计列表界面", $(this));
            }); $("#btnPreview").click(function() {
                OpenUrlOnTab("/UIBuilder/ParseXmlForm.aspx?param=list&id=" + $("[name=ID]").val(), "设计列表界面", $(this));
            });
        });
    </script>

</head>
<body>
    <form id="form1" runat="server">
    <div>
        <input type="button" class="button" id="btnsave" value="保存" />
        <input type="button" class="button" id="btnDesign" value="设计界面" />
        <input type="button" class="button" id="btnPreview" value="预览界面" />
    </div>
    <div region="center">
        <fieldset>
            <legend>基本设置</legend>
            <div class="row">
                <label class="label">
                    标题</label>
                <label class="input">
                    <input type="text" name="TITLE" />
                    <input type="text" name="ID" />
                </label>
            </div>
            <div class="row">
                <label class="label">
                    关联表单</label>
                <label class="input">
                    <input name="FORMID" /></label>
            </div>
            <div class="row">
                <label class="label">
                    查询语句类型</label>
                <label class="input">
                    <input type="radio" name="SQLTYPE" value="1" id="hql_sqltype" /><label for="hql_sqltype">HQL</label>
                    <input type="radio" name="SQLTYPE" value="0" id="sql_sqltype" /><label for="sql_sqltype">SQL</label>
                </label>
            </div>
        </fieldset>
        <fieldset>
            <legend>主界面SQL</legend>
            <textarea style="width: 100%; height: 100px;" name="SQL"></textarea>
        </fieldset>
        <fieldset>
            <legend>权限按钮列表</legend>
        </fieldset>
    </div>
    </form>
</body>
</html>
